# !/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName : zsj.py
# @Time     : 2024/4/7 23:00
# @Author   : Robot-Zsj
"""
description:

input
2 3 4 5
4

output
5
"""
import math

cnts = list(map(int, input().split()))
h = int(input())


def check(speed):
    cost = 0
    for cnt in cnts:
        cost += math.ceil(cnt / speed)
        if cost > h:
            return False
    return True


def getResult():
    n = len(cnts)

    if n > h:
        return 0

    maxSpeed = max(cnts)

    if n == h:
        return maxSpeed

    minSpeed = 1

    ans = maxSpeed

    while minSpeed <= maxSpeed:
        mid = (minSpeed + maxSpeed) >> 1
        if check(mid):
            ans = mid
            maxSpeed = mid - 1
        else:
            minSpeed = mid + 1
    return ans


print(getResult())
